package com.desginer.create.single;

/**
 * 单例模式，静态内部类
 */
public class SingletonStatic {

    static class SubSingleton{
        private static final SingletonStatic INSTANCE = new SingletonStatic();

        private static SingletonStatic getInstance(){
            return INSTANCE;
        }
    }

    public SingletonStatic getInstance(){
        return SubSingleton.getInstance();
    }

}
